﻿
namespace DataAcquisition
{
    public partial class OperationForm : BaseForm
    {
        #region 系统方法
        public OperationForm()
        {
            InitializeComponent();
            Header.Text = "运维面板";
        }
        #endregion

        #region 响应事件
        private void OperationButton_Click(object sender, EventArgs e)
        {
            AntdUI.Button btn = (AntdUI.Button)sender as AntdUI.Button;
            if (Convert.ToInt32(btn.Tag) == 100)
            {
                this.Invoke(new MethodInvoker(delegate
                {
                    DeviceManageForm frm = new DeviceManageForm();
                    frm.ShowDialog();
                }));
            }
            else if (Convert.ToInt32(btn.Tag) == 101)
            {
                this.Invoke(new MethodInvoker(delegate
                {
                    TemplateManageForm frm = new TemplateManageForm();
                    frm.ShowDialog(this);
                }));
            }
            else if (Convert.ToInt32(btn.Tag) == 102)
            {
                this.Invoke(new MethodInvoker(delegate
                {
                    ProjectManageForm frm = new ProjectManageForm();
                    frm.ShowDialog(this);
                }));
            }
        }

        #endregion
    }
}
